﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="AddAddress.aspx.cs" Inherits="MockPrjTeam2.Pages.Forms.AddAddress" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <table cellpadding="0" cellspacing="0" style="width: 100%">
  <tr>
      <td colspan="3" style="font-family: Arial, Helvetica, sans-serif; font-size: large; color: #639A18;font-weight: bold; width: 592px;">                
          <asp:Label ID="lblMsg" runat="server" Text="Label"></asp:Label>    
      </td>
      
  </tr>
  <tr>
    <td>
        PostCode:&nbsp&nbsp<asp:TextBox ID="txtPostCode" runat="server"></asp:TextBox>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
            ControlToValidate="txtPostCode" ErrorMessage="enter only nuber" 
            SetFocusOnError="True" 
            ValidationExpression="^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$"></asp:RegularExpressionValidator>
    </td>       
  </tr>  
  <tr>
    <td>
        Town:&nbsp&nbsp<asp:DropDownList ID="ddlTown" runat="server"></asp:DropDownList>                
    </td>
    <td>
        County:&nbsp&nbsp<asp:DropDownList ID="ddlCounty" runat="server" 
            AutoPostBack="True" 
            onselectedindexchanged="ddlCounty_SelectedIndexChanged"></asp:DropDownList>                
    </td>
    <td>
        Country:&nbsp&nbsp<asp:DropDownList ID="ddlCountry" runat="server" 
            AutoPostBack="True" 
            onselectedindexchanged="ddlCountry_SelectedIndexChanged"></asp:DropDownList>                
    </td>
  </tr>
  <tr>
    <td colspan="3">
    Address:&nbsp&nbsp<asp:TextBox ID="txtAddress" runat="server" TextMode="MultiLine" Height="80px" Width="350px"></asp:TextBox>            
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="txtAddress" ErrorMessage="Enter Address" 
            SetFocusOnError="True"></asp:RequiredFieldValidator>
    </td>
  </tr>
  <tr>
    <td colspan="3">
        
        <asp:Button ID="btAdd" runat="server" Text="Add" onclick="btAdd_Click" />&nbsp&nbsp
        <asp:Button ID="btUpdate" runat="server" Text="Update" 
            onclick="btUpdate_Click" />&nbsp&nbsp
        <asp:Button ID="btCancel" runat="server" Text="Clear" 
            onclick="btCancel_Click" />
        
    </td>
  </tr>
 </table>
</asp:Content>
